package org.dromara.manu.domain;

import org.dromara.common.tenant.core.TenantEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serial;

/**
 * 记录对象 manu_kpi_record
 *
 * @author Bin Liu
 * @date 2024-08-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("manu_kpi_record")
public class ManuKpiRecord extends TenantEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 主数据主键
     */
    private Long masterId;

    /**
     * 年份
     */
    private Integer yearNum;

    /**
     * 月份
     */
    private Integer monthNum;

    /**
     * 周
     */
    private Integer weekNum;

    /**
     * 日期
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date byDaily;

    /**
     * 班次
     */
    private Integer byShift;

    /**
     * 数据结果
     */
    private BigDecimal kpiResult;

    /**
     * 删除标志
     */
    @TableLogic
    private Long delFlag;


}
